import request from '@/utils/request'

// 查询原料采购明细列表
export function listArriveBillDetail(query) {
  return request({
    url: '/material/arriveBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询原料采购明细详细
export function getArriveBillDetail(rowId) {
  return request({
    url: '/material/arriveBillDetail/' + rowId,
    method: 'get'
  })
}

// 新增原料采购明细
export function addArriveBillDetail(data) {
  return request({
    url: '/material/arriveBillDetail',
    method: 'post',
    data: data
  })
}

// 修改原料采购明细
export function updateArriveBillDetail(data) {
  return request({
    url: '/material/arriveBillDetail',
    method: 'put',
    data: data
  })
}

// 删除原料采购明细
export function delArriveBillDetail(rowId) {
  return request({
    url: '/material/arriveBillDetail/' + rowId,
    method: 'delete'
  })
}

// 导出原料采购明细
export function exportArriveBillDetail(query) {
  return request({
    url: '/material/arriveBillDetail/export',
    method: 'get',
    params: query
  })
}